<?php
	class informationModel extends Model{
		public function informationAction(){
            $nname = $_POST["nname"];

            $id =$_SESSION["user"]["id"];
            
            $email = $_POST["email"];
            
            $ttext = $_POST["ttext"];
            $query = "update user set username='{$nname}',email='{$email}',remarks='{$ttext}'where id = '{$id}'";
            $result = $this->link->query($query);
            if($result){
                echo json_encode(array("tag"=>1));
            }else{
                echo json_encode(array("tag"=>0));
            }
		}
	}
	
?>